package com.java.demo.repository;

import com.java.demo.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Repository;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: WHY
 * Date: 2023-07-22
 * Time: 13:21
 */
@Repository
public class UserRepository {

    public User getUser(){
        User user=new User();
        user.setId(1);
        user.setName("zhangsan");
        return user;
    }
}
